package com.wteam.PoJo.DTO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("更改购物车商品")
public class upCartDTO {

    @ApiModelProperty(value = "主键",required = true)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;



    @ApiModelProperty(value = "商品id",required = true)
    private Long goodsId;

    @ApiModelProperty(value = "数量",required = true)
    private Integer num;

    @ApiModelProperty(value = "总价",required = true)
    private BigDecimal price;

    @ApiModelProperty(value = "是否选中（true为选中,false为不选）",required = true)
    private Boolean choose;




}
